@if(auth()->user()->id === 1)
<div class="form-group">
    <label for="tagUid" class="col-md-3 control-label">所属用户</label>
    <div class="col-md-5">
        <select class="form-control" name="uid" id="tagUid"
                onchange="$('#username').val($(this).find('option:selected').text());">
            @foreach ($userList as $id=>$name)
                <option value="{{ $id }}" @if ($id === $uid) selected="selected" @endif>{{ $name }}</option>
            @endforeach
        </select>
        <input type="hidden" id="username" name="username" value="{{ empty($username) ? $userList[1] : $username}}">
    </div>
</div>
@else
    <input type="hidden" id="uid" name="uid" value="{{auth()->user()->id}}">
    <input type="hidden" id="username" name="username" value="{{auth()->user()->name}}">
@endif
<input type="hidden" id="ischeck" name="ischeck" value="{{$ischeck}}">
<input type="hidden" id="created_at" name="created_at" value="{{$created_at ? created_at : date('Y-m-d H:i:s')}}">
<input type="hidden" id="created_at" name="created_at" value="{{$updated_at ? updated_at : date('Y-m-d H:i:s')}}">
<div class="form-group">
    <label for="tagDomain" class="col-md-3 control-label">域名</label>
    <div class="col-md-5">
        <textarea class="form-control" rows="3" name="domain" id="tagDomain">{{ $domain }}</textarea>
    </div>
</div>

<div class="form-group">
    <label class="col-md-3 control-label">检测类型</label>
    <div class="col-md-5">
            @foreach(Config::get('app.check_type_list') as $key => $obj)
                <label class="radio-inline">
                    <input type="radio" name="check_type" value="{{$key}}" @if($check_type == $key) checked @endif> {{$obj}}
                </label>
            @endforeach

    </div>
</div>

